import { Limit } from 'src/shared/utils/pagination';
import { Role } from '../entities/role.enum';
import { IsEnum, IsOptional } from 'class-validator';

export class RoleLimit extends Limit {
  @IsEnum(Role)
  role?: Role;

  @IsOptional()
  phone?: string;

  @IsOptional()
  name?: string;
}
